//
//  UIFont+BW.swift
//  BWExtensionKit
//
//  Created by zhuxuhong on 2022/2/18.
//

import UIKit

extension UIFont {
    public var italic: UIFont  {
        return .italicSystemFont(ofSize: pointSize)
    }
    public var light: UIFont {
        return .systemFont(ofSize: pointSize, weight: .light)
    }
    public var ultraLight: UIFont {
        return .systemFont(ofSize: pointSize, weight: .ultraLight)
    }
    public var medium: UIFont {
        return .systemFont(ofSize: pointSize, weight: .medium)
    }
    public var semiBold: UIFont {
        return .systemFont(ofSize: pointSize, weight: .semibold)
    }
    public var bold: UIFont {
        return .boldSystemFont(ofSize: pointSize)
    }
}

extension UIFont {
    public static let system10 = UIFont.systemFont(ofSize: 10)
    public static let system11 = UIFont.systemFont(ofSize: 11)
    public static let system12 = UIFont.systemFont(ofSize: 12)
    public static let system13 = UIFont.systemFont(ofSize: 13)
    public static let system14 = UIFont.systemFont(ofSize: 14)
    public static let system15 = UIFont.systemFont(ofSize: 15)
    public static let system16 = UIFont.systemFont(ofSize: 16)
    public static let system17 = UIFont.systemFont(ofSize: 17)
    public static let system18 = UIFont.systemFont(ofSize: 18)
    public static let system20 = UIFont.systemFont(ofSize: 20)
    public static let system22 = UIFont.systemFont(ofSize: 22)
    public static let system24 = UIFont.systemFont(ofSize: 24)
    public static let system26 = UIFont.systemFont(ofSize: 26)
    public static let system28 = UIFont.systemFont(ofSize: 28)
    public static let system30 = UIFont.systemFont(ofSize: 30)
}
